package com.aaa.service.impl.comboboxserviceimpl;


import com.aaa.common.domain.comboboxquery.LessorInfo;
import com.aaa.mapper.comboboxmapper.LessorQueryMapper;
import com.aaa.service.comboboxservice.LessorQueryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 宋文森
 * @Date: 2021/01/27/16:42
 * @Description: 出租方service实现类
 */
@Service
public class LessorQueryServiceImpl extends ServiceImpl<LessorQueryMapper, LessorInfo> implements LessorQueryService {


    @Autowired
    LessorQueryMapper lessorQueryMapper;

    /**
     * 查询所有的出租方
     * @return Result
     */
    public List<LessorInfo> ListLessor() {


        List<LessorInfo> lessorInfos = lessorQueryMapper.selectList(null);

        return lessorInfos;
    }
}
